Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 30 Oct 2021 12:46:26 +0000 (13:46 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 30 Oct 2021 12:46:26 +0000 (13:46 +0100)
commitd6e2b1b3310bf59b2e4640e9e040445fc863f797
tree7ceece03bde5ab2eaf45a55bb63729a0afaa3de3
parent330a1437fbcc3b7b636cbbea665edf4e5b1d944b
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas